<h1><%=h @semester.term %> Semester

<% if session[:user].user_type == "admin" %>
	<%= render :partial=>"course_list-admin", :locals=>{:courses=>@semester.courses} %>
	<%= render :partial=>"new_course", :locals=>{:course=>Course.new(:term=>@semester.term, :semester_id=>@semester.id)} %>
<% else %>
	<%= render :partial=>"course_list", :locals=>{:courses=>@semester.courses} %>
<% end %>

<%= link_to 'Edit Semester', edit_semester_path(@semester.term) %> |
<%= link_to 'Back to Semester List', semesters_path %>